package com.woniuxy.kaer.service.consumer;

import com.woniuxy.kaer.commons.util.Data;
import com.woniuxy.kaer.service.entity.ServiceOrder;
import com.woniuxy.kaer.service.mapper.ServiceOrderMapper;
import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class CheckFinishConsumer {
    @Resource
    private ServiceOrderMapper serviceOrderMapper;
    @RabbitHandler
    @RabbitListener(bindings ={
            @QueueBinding(
                    value=@Queue(value="check_finish_queue"),
                    exchange = @Exchange(value="d2",type="direct"),
                    key="check_finish"
            )
    })
    public void checkOrderFinish(String serviceOrderId){

    }
}
